package com.achievo.know.domain;

import com.dayatang.domain.BaseEntityRepository;

/**
 * 文件仓储
 * @author hp
 *
 */
public interface FileRepository extends BaseEntityRepository<File, Long> {

	/**
	 * 批量删除文件
	 * @param ids
	 */
	public void batchDelete(String[] ids);
	/**
	 * 删除收藏
	 * @param ids
	 */
	public void batchDeleteFavorite(String[] ids);
	public void addTempAttachment(TempAttachment temp);
	public void delTempAttachment(Long attachId);
	public FileAttachment getAttachment(Long id);
	public boolean isAddFavorite(Long id,String username);
	public void addDownSum(Long fkId);
	public TempAttachment getTempByGuid(String guid);
}
